package me.cat.oopextends.a05oopextendsdemo5;

public class Test {
    public static void main(String[] args) {
        //创建对象并赋值调用
        Manager m = new Manager("001", "lisi", 15000, 2000);
        System.out.println(m.getId() + "," + m.getName() +
                "," + m.getSalary() + "," + m.getBouns());
        m.work();
        m.eat();
        Cook c = new Cook();
        c.setId("002");
        c.setName("wangwu");
        c.setSalary(8000);
        System.out.println(c.getId() + "," + c.getName() +
                "," + c.getSalary());
        c.work();
        c.eat();
    }
}
